package com.jy.project.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank ;
import javax.validation.constraints.Size;

@Data
public class LoginDTO {
    @NotBlank (message = "账户不能为空")
    @Size(min = 6,max = 11,message = "账户位数不对")
    private  String userName;

    @NotBlank (message = "密码不能为空")
    @Size(min= 6,message = "密码不能小于6位数")
    private  String  pwd;
}
